-
Notifications
You must be signed in to change notification settings - Fork 388
Silence unused warnings related to tests #2324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mazunki
wants to merge
16
commits into
includeos:main
Choose a base branch
from
mazunki:fix-silence-unused-parameters2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fc77144 to
4abfe60
Compare
same value is used explicitly in test later
silences warnings
removed redundant variables or marked them unused if they're based on preprocessor conditions
by converting names to `std::string` and `std::string_view` we facilitate comparing strings
while this can be done explicitly if we know if our ip type is ip4 or ip6, this allows us to pass `auto ip` to the comparison
4abfe60 to
39a2a7d
Compare
|
This has been rebased and is ready for review. As the title mentions, these tests are related to tests; but touches upon some source too. There are still a few warnings I'd like to address, but they're more related to issues with the source itself, so I will handle them at a later point |
these variables were previously unused
this should probably not use external DNS servers at all, but this variable is unused which is reported as a warning. this issue is already tracked in includeos#2313
33410e9 to
d84bda7
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Continuation of #2320 , but addressing tests.
@alfreb
test/kernel/integration/paging/service.cpphas an unusedheap_codevariable. I see you updated this test in 2019.The
void(*heap_code)() = (void(*)()) malloc(42);line is at the very beginning of the test. I suspect the intention of this is to warm of the allocator. Did you mean to change this tomagic->heap_code?I don't want to touch the tests based on assumptions on what the intention was, without fully understanding what the idea behind it was.
Additionally,
Expects(magic->last_error = Page_fault);is surely a subtle bug? That=should be==, right?